﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace ykglxt
{
    public partial class Form_FPDJYHX : Form
    {
        public Form_FPDJYHX()
        {
            InitializeComponent();
        }

        SqlConnection con;
        SqlDataAdapter sda;
        DataSet ds;
        BindingSource bs;
        SqlCommandBuilder builder;

        private void Form_FPDJYHX_Load(object sender, EventArgs e)
        {
            string sqlstr = "SELECT BM,MC FROM Dic_GYS";
            con = new SqlConnection(PublicUnit.ConnetionString);
            DataTable dtGYS = new DataTable();
            sda = new SqlDataAdapter(sqlstr, con);
            sda.Fill(dtGYS);
            cbGYS.DataSource = dtGYS;
            cbGYS.DisplayMember = "MC";
            cbGYS.ValueMember = "BM";
        }
    }
}
